<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery-3.5.1.min.js">
        
    </script>
    <script src="https://statics.ys7.com/openweb/assets/ezuikit_v2.6.4/js/jquery-ac3a4cccfb.min.js"></script>
</head>
<body>
    <div class="out-box">
        
    <video id="myPlayer" autoplay muted src="https://hls01open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.m3u8" controls playsInline webkit-playsinline></video>
<script>!function(global,factory){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=global.document?factory(global,!0):function(w){if(!w.document)throw new Error("EZUIPlayer requires a window with a document");return factory(w)}:factory(global)}("undefined"!=typeof window?window:this,function(window,noGlobal){function dclog(obj){var domain=window.location.protocol+"//"+window.location.host,logObj={Ver:"v.2.6.0",PlatAddr:domain,ExterVer:"Ez.2.6.0",OpId:uuid(),CltType:102,StartTime:(new Date).Format("yyyy-MM-dd hh:mm:ss.S"),OS:navigator.platform};for(var i in obj)logObj[i]=obj[i];var tempArray=[];for(var j in logObj)tempArray.push(j+"="+logObj[j]);var params="?"+tempArray.join("&");(new Image).src=logDomain+params}function ezuikitDclog(obj){var domain=window.location.protocol+"//"+window.location.host,logObj={version:"v.2.6.0",plate_addr:domain,st:(new Date).getTime()};for(var i in obj)logObj[i]=obj[i];var tempArray=[];for(var j in logObj)tempArray.push(j+"="+logObj[j]);var params="?"+tempArray.join("&");(new Image).src=logDomain+params}function getStyle(el){return window.getComputedStyle?window.getComputedStyle(el,null):el.currentStyle}function addJs(filepath,callback){var oJs=document.createElement("script");oJs.setAttribute("src",filepath),oJs.onload=callback,document.getElementsByTagName("head")[0].appendChild(oJs)}function request(url,method,params,header,success,error){var _url=url,http_request=new XMLHttpRequest;http_request.onreadystatechange=function(){if(4==http_request.readyState&&200==http_request.status){var _data=JSON.parse(http_request.responseText);success(_data)}},http_request.open(method,_url,!0);var data=new FormData;for(i in params)data.append(i,params[i]);http_request.send(data)}function getQueryString(name,url){var r=new RegExp("(\\?|#|&)"+name+"=(.*?)(#|&|$)"),m=(url||location.href).match(r);return decodeURIComponent(m?m[2]:"")}function isPromise(obj){return!!obj&&("object"==typeof obj||"function"==typeof obj)&&"function"==typeof obj.then}function uuid(){for(var s=[],hexDigits="0123456789abcdef",i=0;i<36;i++)s[i]=hexDigits.substr(Math.floor(16*Math.random()),1);return s[14]="4",s[19]=hexDigits.substr(3&s[19]|8,1),s[8]=s[13]=s[18]=s[23]="-",s.join("")}function getBrowserInfo(){var Sys={},ua=navigator.userAgent.toLowerCase(),re=/(msie|firefox|chrome|opera|version).*?([\d.]+)/,m=ua.match(re);try{Sys.browser=m[1].replace(/version/,"'safari"),Sys.ver=m[2]}catch(e){console.log("getBrowserInfo fail.")}return Sys}function isJSON(str){if("string"==typeof str)try{var obj=JSON.parse(str);return!("object"!=typeof obj||!obj)}catch(e){return!1}console.log("It is not a string!")}function ios11Hack(video){var isloadeddata=!1,isPlaying=!1,stalledCount=0;video.addEventListener("loadeddata",function(){isloadeddata=!0},!1),video.addEventListener("stalled",function(){stalledCount++,isPlaying||stalledCount>=2&&!isloadeddata&&(video.load(),video.play(),isloadeddata=!1,isPlaying=!1,stalledCount=0)},!1),video.addEventListener("playing",function(){isPlaying=!0})}function ltIE11(){var userAgent=navigator.userAgent;return!!(userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1)}!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return void 0===a.cloneNode||void 0===a.createDocumentFragment||void 0===a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==n.shivCSS,supportsUnknownElements:l,shivMethods:!1!==n.shivMethods,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}(void 0!==window?window:this,document),"document"in self&&("classList"in document.createElement("_")?function(){var b=document.createElement("_");if(b.classList.add("c1","c2"),!b.classList.contains("c2")){var c=function(e){var d=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(h){var g,f=arguments.length;for(g=0;g<f;g++)h=arguments[g],d.call(this,h)}};c("add"),c("remove")}if(b.classList.toggle("c3",!1),b.classList.contains("c3")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,e){return 1 in arguments&&!this.contains(d)==!e?e:a.call(this,d)}}b=null}():function(j){"use strict";if("Element"in j){var a="classList",f="prototype",m=j.Element[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){for(var p=0,o=this.length;p<o;p++)if(p in this&&this[p]===q)return p;return-1},n=function(o,p){this.name=o,this.code=DOMException[o],this.message=p},g=function(p,o){if(""===o)throw new n("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(o))throw new n("INVALID_CHARACTER_ERR","String contains an invalid character");return c.call(p,o)},d=function(s){for(var r=k.call(s.getAttribute("class")||""),q=r?r.split(/\s+/):[],p=0,o=q.length;p<o;p++)this.push(q[p]);this._updateClassName=function(){s.setAttribute("class",this.toString())}},e=d[f]=[],i=function(){return new d(this)};if(n[f]=Error[f],e.item=function(o){return this[o]||null},e.contains=function(o){return o+="",-1!==g(this,o)},e.add=function(){var q,s=arguments,r=0,p=s.length,o=!1;do{q=s[r]+"",-1===g(this,q)&&(this.push(q),o=!0)}while(++r<p);o&&this._updateClassName()},e.remove=function(){var r,q,t=arguments,s=0,p=t.length,o=!1;do{for(r=t[s]+"",q=g(this,r);-1!==q;)this.splice(q,1),o=!0,q=g(this,r)}while(++s<p);o&&this._updateClassName()},e.toggle=function(p,q){p+="";var o=this.contains(p),r=o?!0!==q&&"remove":!1!==q&&"add";return r&&this[r](p),!0===q||!1===q?q:!o},e.toString=function(){return this.join(" ")},b.defineProperty){var l={get:i,enumerable:!0,configurable:!0};try{b.defineProperty(m,a,l)}catch(h){-2146823252===h.number&&(l.enumerable=!1,b.defineProperty(m,a,l))}}else b[f].__defineGetter__&&m.__defineGetter__(a,i)}}(self)),Date.prototype.Format=function(fmt){var o={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(fmt)&&(fmt=fmt.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var k in o)new RegExp("("+k+")").test(fmt)&&(fmt=fmt.replace(RegExp.$1,1==RegExp.$1.length?o[k]:("00"+o[k]).substr((""+o[k]).length)));return fmt};var Domain="https://open.ys7.com",logDomain="https://log.ys7.com/statistics.do",ckplayerJS=Domain+"/sdk/js/2.0/js/ckplayer/ckplayer.js",flv_js=Domain+"/sdk/js/2.0/js/flv.min.js",isHttps="https:"===window.location.protocol,isMobile=!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|ios|SymbianOS)/i),testVideo=document.createElement("video"),isModernBrowser=!!testVideo.canPlayType&&!!window.addEventListener,isNativeSupportHls=isModernBrowser&&testVideo.canPlayType("application/vnd.apple.mpegURL"),isSupportHls=!1,useFlash=!1,playStartTime=(new Date).getTime(),PLAY_MAIN="open_netstream_play_main",PERFORMANCE_EZUIKIT="open_ezuikit_performance";dclog({systemName:"open_netstream_localinfo"}),ezuikitDclog({systemName:"open_ezuikit_localinfo",os:navigator.platform,browser:JSON.stringify(getBrowserInfo())});var RTMP_REG=/^rtmp/,EZUIPlayer=function(playParams){if(!isModernBrowser)throw new Error("不支持ie8等低版本浏览器");if(this.opt={},this.opt.sources=[],this.handlers={},"object"==typeof playParams&&playParams.hasOwnProperty("decoderPath")){var oS=document.createElement("style");if(document.getElementsByTagName("head")[0].appendChild(oS),oS.innerHTML=".draw-window {border: none!important}","string"!=typeof playParams.decoderPath||void 0===playParams.decoderPath)throw new Error("EZUIDecoder requires the path of decoder");if("string"!=typeof playParams.id||void 0===playParams.id)throw new Error("EZUIDecoder requires parameter id");if("string"!=typeof playParams.url||void 0===playParams.url)throw new Error("EZUIDecoder requires parameter url");this.loadingStart=function(){function calLoadingPostion(windowHeight,windowWidth,splitBasis,i){return{top:parseInt(i/splitBasis,10)*(windowHeight/splitBasis),left:i%splitBasis*(windowWidth/splitBasis)}}var oS=document.createElement("style");if(document.getElementsByTagName("head")[0].appendChild(oS),oS.innerHTML="@keyframes antRotate {to {transform: rotate(400deg);transform-origin:50% 50%;}} .loading {display: inline-block;z-index: 1000;-webkit-animation: antRotate 1s infinite linear;animation: antRotate 1s infinite linear;}",playParams&&playParams.id){var domId=playParams.id,domElement=document.getElementById(domId),windowWidth=domElement.offsetWidth,windowHeight=domElement.offsetHeight||playParams.height||400,offsetTop=domElement.offsetTop,offsetLeft=domElement.offsetLeft;document.getElementById("loading-id-0")&&document.getElementById("loading-id-0").parentNode.removeChild(document.getElementById("loading-id-0"));var loadingContainerDOM=document.createElement("div");loadingContainerDOM.setAttribute("id","loading-id-0");var style="position:absolute;outline:none;";style+="width: 0px;",style+="height: 0px;",style+="top:"+offsetTop+"px;",style+="left:"+offsetLeft+"px;",loadingContainerDOM.setAttribute("style",style);var loadingContainer=document.getElementById("loading-id-0");loadingContainerDOM.style.height=windowHeight,loadingContainerDOM.setAttribute("class","loading-container"),function(newElement,targetElement){var parent=targetElement.parentNode;parent.lastChild==targetElement?parent.appendChild(newElement):parent.insertBefore(newElement,targetElement.nextSibling)}(loadingContainerDOM,domElement);for(var splitBasis=playParams.splitBasis||1,windowLength=playParams.url.split(",").length,i=0;i<windowLength;i++){var loadingContainer=document.createElement("div"),loadingStatusDOM=document.createElement("div");loadingContainer.setAttribute("class","loading-item"),loadingContainer.setAttribute("id","loading-item-"+i);var style="display:inline-flex;flex-direction:column;justify-content:center;align-items: center;width:"+windowWidth/splitBasis+"px;height:"+windowHeight/splitBasis+"px;outline:none;vertical-align: top;position:absolute;";style+="left:"+calLoadingPostion(windowHeight,windowWidth,splitBasis,i).left+"px;",style+="top:"+calLoadingPostion(windowHeight,windowWidth,splitBasis,i).top+"px;",loadingContainer.setAttribute("style",style);var loadingDOM=document.createElement("div");loadingStatusDOM.innerHTML="",loadingStatusDOM.style.color="#fff",loadingDOM.setAttribute("class","loading");var loading='<svg t="1567069979438" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2399" width="32" height="32"><path d="M538.5344 266.4448a133.12 133.12 0 1 1 133.12-133.12 133.4272 133.4272 0 0 1-133.12 133.12zM255.0144 372.1984a121.6768 121.6768 0 1 1 121.6768-121.6768 121.856 121.856 0 0 1-121.6768 121.6768zM134.72 647.424a107.3664 107.3664 0 1 1 107.3664-107.264A107.52 107.52 0 0 1 134.72 647.424z m120.32 272.4608a90.9824 90.9824 0 1 1 90.9824-90.9824A91.1616 91.1616 0 0 1 255.04 919.8848zM538.5344 1024a79.36 79.36 0 1 1 79.36-79.36 79.36 79.36 0 0 1-79.36 79.36z m287.6928-134.144a64.1792 64.1792 0 1 1 64.1792-64.1792 64.3584 64.3584 0 0 1-64.1792 64.1792z m117.76-296.704a52.6336 52.6336 0 1 1 52.6592-52.6336 52.608 52.608 0 0 1-52.6336 52.6336z m-158.72-338.7136a40.96 40.96 0 1 1 12.0064 28.8512 40.5248 40.5248 0 0 1-12.0064-28.8512z" fill="#ffffff" p-id="2400"></path></svg>';playParams.loading&&playParams.loading.svg&&(loading=playParams.loading.svg),loadingDOM.innerHTML=loading,loadingContainer.appendChild(loadingDOM),loadingContainer.appendChild(loadingStatusDOM),loadingContainerDOM.appendChild(loadingContainer)}}},this.loadingSet=function(index,opt){document.getElementById("loading-id-0");if(document.getElementById("loading-item-"+index)){var textElement=document.getElementById("loading-item-"+index).childNodes[1];textElement.innerHTML=opt.text,opt.color&&(textElement.style.color=opt.color)}},this.loadingEnd=function(index){var loadingItemContainerDOM=document.getElementById("loading-item-"+index);if(loadingItemContainerDOM){loadingItemContainerDOM.parentNode.removeChild(loadingItemContainerDOM);var loadingContainerDOM=document.getElementById("loading-id-0");loadingContainerDOM&&0===loadingContainerDOM.children.length&&loadingContainerDOM.parentNode.removeChild(loadingContainerDOM)}},this.opt.sources.push(playParams.url),this.opt.currentSource=this.opt.sources[0];if(playParams.env){playParams.env.domain}this.jSPlugin={};var _this=this;this.loadingStart(),playStartTime=(new Date).getTime();var getRealUrl=this.getRealUrl(playParams);isPromise(getRealUrl)&&getRealUrl.then(function(data){var initDecoder=_this.initDecoder(playParams);_this.loadingSet(0,{text:"初始化播放器..."}),isPromise(initDecoder)&&!1!==playParams.autoplay&&initDecoder.then(function(data){_this.loadingSet(0,{text:"初始化完成"}),_this.play(playParams)})}).catch(function(err){var initDecoder=_this.initDecoder(playParams);isPromise(initDecoder)&&!1!==playParams.autoplay&&initDecoder.then(function(){})})}else{var elementID="";if("string"==typeof playParams?elementID=playParams:"object"==typeof playParams&&(elementID=playParams.id),this.videoId=elementID,this.video=document.getElementById(elementID),!this.video)throw new Error("EZUIPlayer requires parameter videoId");var sources=this.video.getElementsByTagName("source");sources=Array.prototype.slice.call(sources,0),this.video.src&&(isMobile&&RTMP_REG.test(this.video.src)?(this.video.removeAttribute("src"),this.video.load()):this.opt.sources.push(this.video.src));var l=sources.length;if(l>0)for(var i=0;i<l;i++)isMobile&&RTMP_REG.test(sources[i].src)?this.video.removeChild(sources[i]):this.opt.sources.push(sources[i].src);if(this.opt.sources.length<1)throw new Error("no source found in video tag.");this.opt.cur=0,this.opt.poster=this.video.poster;var videoStyle=getStyle(this.video),width=this.video.width,height=this.video.height;width?(this.opt.width=width,this.opt.height=height||"auto",this.log("video width:"+this.opt.width+" height:"+this.opt.height)):(this.opt.width=videoStyle.width,this.opt.height=videoStyle.height,this.log("videoStyle.width:"+videoStyle.width+" wideoStyle.height:"+videoStyle.height)),this.opt.parentId=elementID,this.opt.autoplay=!!this.video.autoplay,this.log("autoplay:"+this.video.autoplay),this.opt.currentSource=this.opt.sources[this.opt.cur],this.getRealUrl(playParams)}this.handlers={},this.initTime=(new Date).getTime(),this.on("play",function(){dclog({systemName:PLAY_MAIN,playurl:this.opt.currentSource,Time:(new Date).Format("yyyy-MM-dd hh:mm:ss.S"),Enc:0,PlTp:1,Via:2,ErrCd:0,OpId:uuid(),Cost:(new Date).getTime()-this.initTime})}),this.retry=2,this.on("error",function(){dclog({systemName:PLAY_MAIN,playurl:this.opt.currentSource,cost:-1,ErrCd:-1,OpId:uuid()})})};EZUIPlayer.prototype.on=function(eventName,callback){"string"==typeof eventName&&"function"==typeof callback&&(void 0===this.handlers[eventName]&&(this.handlers[eventName]=[]),this.handlers[eventName].push(callback))},EZUIPlayer.prototype.emit=function(){if(this.handlers[arguments[0]]instanceof Array)for(var handlers=this.handlers[arguments[0]],l=handlers.length,i=0;i<l;i++)handlers[i].apply(this,Array.prototype.slice.call(arguments,1))},EZUIPlayer.prototype.log=function(msg,className){this.emit("log",msg,className)},EZUIPlayer.prototype.getRealUrl=function(playParams){function formatRecTime(time,defaultTime){if(/^[0-9]{8}T[0-9]{6}Z$/.test(time))return time;if(/[0-9]{8,14}/.test(time)){var start=6-(14-time.length),end=defaultTime.length,standardTime=time+defaultTime.substring(start,end);return standardTime.slice(0,8)+"T"+standardTime.slice(8)+"Z"}throw new Error("回放时间格式有误，请确认")}function reRormatRecTime(time){var year=time.slice(0,4),month=time.slice(4,6),day=time.slice(6,8),hour=time.slice(9,11),minute=time.slice(11,13),second=time.slice(13,15),date=year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;return new Date(date.replace(/-/g,"/")).getTime()}var _this=this,apiDomain="https://open.ys7.com";if(playParams&&playParams.env&&(apiDomain=playParams.env.domain),playParams&&playParams.hasOwnProperty("decoderPath")){var getRealUrlDurationST=(new Date).getTime(),getRealUrlPromise=function(resolve,reject,ezopenURL){var realUrl="";if(/^ezopen:\/\//.test(ezopenURL)){var getPlayTokenST=(new Date).getTime(),nodeUrl=apiDomain+"/jssdk/ezopen/getStreamToken?accessToken="+playParams.accessToken+"&num=10&type="+(-1!==playParams.url.indexOf("live")?"live":"playback"),nodeSuccess=function(data){if(0!==data.retcode)throw playParams&&playParams.handleError&&playParams.handleError(data),data.msg&&_this.loadingSet(0,{text:data.msg,color:"red"}),ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:3,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-getPlayTokenST,rt:data.retcode,msg:data.msg}),resolve(JSON.stringify(data)),new Error("获取播放token失败");realUrl=realUrl+data.data.params+"&ssn="+data.data.tokens[0],ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:3,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-getPlayTokenST,rt:200}),resolve(realUrl)},nodeError=function(error){throw playParams&&playParams.handleError&&playParams.handleError(error),ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:3,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-getPlayTokenST,rt:500,msg:"获取取流token网络错误"}),resolve(JSON.stringify(error)),new Error("获取播放token失败","error")},apiUrl=apiDomain+"/api/lapp/live/url/ezopen",apiSuccess=function(data){function recAPISuccess(data){if(200==data.code){var recSliceArr=[];if(data.data&&data.data.length>0){recSliceArr=function(data){var downloadPathArr=[];downloadPathArr.length;return data.forEach(function(item,index){0==downloadPathArr.length||item.downloadPath!==downloadPathArr[downloadPathArr.length-1].downloadPath?downloadPathArr.push({downloadPath:item.downloadPath,ownerId:item.ownerId,iStorageVersion:item.iStorageVersion,videoType:item.videoType,iPlaySpeed:0,startTime:item.startTime,endTime:item.endTime}):downloadPathArr[downloadPathArr.length-1].endTime=item.endTime}),downloadPathArr}(data.data);var recSliceArrJSON=JSON.stringify(recSliceArr).replace("\\","");realUrl+="&recSlice="+recSliceArrJSON.replace("\\",""),request(nodeUrl,"GET","","",nodeSuccess,nodeError)}else _this.log("未找到录像片段","error"),_this.loadingSet(0,{text:"获取设备播放地址"}),resolve(JSON.stringify({code:-1,msg:"未找到录像片段"}))}else _this.log(data.msg,"error"),_this.loadingSet(0,{text:"获取设备播放地址"}),resolve(JSON.stringify({code:-1,msg:"未找到录像片段"}))}function recAPIError(err){console.log("获取回放片段错误")}if(200==data.code||0==data.retcode){if(realUrl+=data.data,-1!==data.data.indexOf("playback")){if(getQueryString("begin",data.data))realUrl=realUrl.replace("&begin="+getQueryString("begin",data.data),"&begin="+formatRecTime(getQueryString("begin",data.data),"000000"));else{var defaultDate=new Date;realUrl=realUrl+"&begin="+defaultDate.Format("yyyyMMdd")+"T000000Z"}if(getQueryString("end",data.data))realUrl=realUrl.replace("&end="+getQueryString("end",data.data),"&end="+formatRecTime(getQueryString("end",data.data),"235959"));else{var defaultDate=new Date;realUrl=realUrl+"&end="+defaultDate.Format("yyyyMMdd")+"T235959Z"}if(getQueryString("stream",data.data)||(realUrl=realUrl.replace("stream","&stream")),-1!==playParams.url.indexOf(".cloud")){var recBegin=reRormatRecTime(getQueryString("begin",realUrl)),recEnd=reRormatRecTime(getQueryString("end",realUrl)),deviceSerial=getQueryString("serial",realUrl),channelNo=getQueryString("chn",realUrl);request(apiDomain+"/api/lapp/video/by/time","POST",{accessToken:playParams.accessToken,recType:1,deviceSerial:deviceSerial,channelNo:channelNo,startTime:recBegin,endTime:recEnd},"",recAPISuccess,recAPIError)}else request(nodeUrl,"GET","","",nodeSuccess,nodeError)}else request(nodeUrl,"GET","","",nodeSuccess,nodeError);getPlayTokenST=(new Date).getTime();var getRealUrlDurationET=(new Date).getTime();ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:0,browser:JSON.stringify(getBrowserInfo()),duration:getRealUrlDurationET-getRealUrlDurationST,rt:200})}else{playParams&&playParams.handleError&&playParams.handleError(data);var getRealUrlDurationET=(new Date).getTime();ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:0,browser:JSON.stringify(getBrowserInfo()),duration:getRealUrlDurationET-getRealUrlDurationST,rt:data.code||500,msg:data.msg||"未知服务错误"}),resolve(JSON.stringify(data),"error")}},apiError=function(error){playParams&&playParams.handleError&&playParams.handleError(error);var getRealUrlDurationET=(new Date).getTime();ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:0,browser:JSON.stringify(getBrowserInfo()),duration:getRealUrlDurationET-getRealUrlDurationST,rt:500,msg:data.msg||"网络错误"}),resolve(JSON.stringify(error))},isHttp="false";isHttp=playParams&&playParams.env&&playParams.env.domain?-1!==playParams.env.domain.indexOf("https")?"false":"true":-1!==window.location.href.indexOf("https")?"false":"true";request(apiUrl,"POST",{ezopen:ezopenURL,userAgent:window.navigator.userAgent,isFlv:!1,addressTypes:null,isHttp:isHttp,accessToken:playParams.accessToken},"",apiSuccess,apiError)}else resolve(ezopenURL)},urlList=playParams.url.split(","),promiseTaskList=[],promiseTaskFun=function(ezopenURL){return new Promise(function(resolve,reject){return getRealUrlPromise(resolve,0,ezopenURL)})};urlList.map(function(item,index){_this.loadingSet(index,{text:"获取设备播放地址"}),promiseTaskList.push(promiseTaskFun(item))});return Promise.all(promiseTaskList).then(function(result){_this.opt.sources=result,_this.opt.currentSource=result[0],result.forEach(function(item,index){_this.loadingSet(index,{text:"获取播放地址成功"})})}).catch(function(err){_this.log("获取真实地址错误"+JSON.stringify(err),"error")})}if(!this.opt.currentSource)return void this.log("未找到合适的播放URL","error");if(/^ezopen:\/\//.test(this.opt.currentSource)){if(!/^ezopen:\/\//.test(this.opt.currentSource))throw new Error("EZOPEN地址必须要以ezopen://开头");if(-1===this.opt.currentSource.indexOf(".com/"))throw new Error("EZOPEN地址格式不正确");if(!/[a-z\d]{32}(\.hd)?\.live/.test(this.opt.currentSource))throw new Error("EZOPEN地址格式uuid格式不正确");if(/(.*.hls.*|.*.m3u8.*|.*.wss.*|.*.flv.*|.*.rtmp.*){2,}/.test(this.opt.currentSource))throw new Error("EZOPEN地址多于两个播放协议");if(-1!==this.opt.currentSource.search(/(.hls|.m3u8|.wss|.flv|.rtmp)/)&&!/.live(.hls|.m3u8|.wss|.flv|.rtmp)/.test(this.opt.currentSource))throw new Error("请指定正确的播放协议");if(-1===this.opt.currentSource.search(/(.hls|.m3u8|.wss|.flv|.rtmp)/)&&!/[a-z\d]{32}(\.hd)?\.live$/.test(this.opt.currentSource))throw new Error("EZOPEN地址结尾不正确");var that=this;addJs(flv_js,function(){var para={ezopen:that.opt.currentSource,userAgent:window.navigator.userAgent,isFlv:!(!flvjs||!flvjs.isSupported())&&flvjs.isSupported(),addressTypes:"HLS,RTMP,WS,FLV",isHttp:!(window.location.protocol.indexOf("s")>0)};dclog({ezopen:that.opt.currentSource,userAgent:window.navigator.userAgent,isFlv:!(!flvjs||!flvjs.isSupported())&&flvjs.isSupported(),addressTypes:"HLS,RTMP,WS,FLV",isHttp:!(window.location.protocol.indexOf("s")>0),systemName:"EZOPEN"}),that.log("---------------------------------------"),that.log("入参(ezopen)是：   "+para.ezopen),that.log("---------------------------------------"),that.log("入参(userAgent)是：   "+para.userAgent),that.log("---------------------------------------"),that.log("入参(isFlv)是：   "+para.isFlv),that.log("---------------------------------------"),that.log("入参(addressTypes)是：   "+para.addressTypes),that.log("---------------------------------------"),that.log("入参(isHttp)是：   "+para.isHttp),that.log("---------------------------------------"),request(apiDomain+"/api/lapp/live/url/ezopen","POST",para,"",function(data){if(200!=data.code)throw that.log("data：   "+JSON.stringify(data)),new Error(data.msg);that.log("播放地址是：   "+data.data),that.video.src=data.data,that.video.load(),that.tryPlay(data.data)},function(error){console.log("getdecoder url from api error",error)})})}else this.tryPlay(this.opt.currentSource)},EZUIPlayer.prototype.tryPlay=function(playParams){this.log("开始尝试播放，播放配置参数为："),this.log(playParams);if(playParams&&"object"==typeof playParams&&playParams.decoderPath);else{this.opt.currentSource=playParams;var me=this;if(/\.m3u8/.test(playParams))if(isMobile||isNativeSupportHls)this.log("使用原生video"),this.video.style.heght=this.opt.height=9*Number(this.opt.width.replace(/px$/g,""))/16+"px",this.initVideoEvent();else{var isPlayUrlHttps=-1!==playParams.indexOf("https");isHttps&&!isPlayUrlHttps?addJs(ckplayerJS,function(){me.initCKPlayer()}):addJs("https://open.ys7.com/sdk/js/2.0/js/hls.min.js",function(){isSupportHls=Hls.isSupported(),isSupportHls?(me.log("使用hls.js"),me.initHLS(playParams)):(useFlash=!0,me.log("2 使用flash"),addJs(ckplayerJS,function(){me.initCKPlayer()}))})}else if(/^rtmp:/.test(playParams)){if(isMobile)return this.opt.cur++,void this.tryPlay(playParams);addJs(ckplayerJS,function(){me.initCKPlayer(playParams)})}else if(/^wss:|^ws:/.test(playParams)){if(ltIE11())return void alert("WS协议不支持Ie11以下的浏览器！请使用IE11，或者更高版本的浏览器");addJs("https://open.ys7.com/sdk/js/2.0/js/jsmpeg.min.js",function(){me.initJSmpeg(playParams)})}else/\.flv/.test(this.opt.currentSource)&&(ltIE11()?addJs(flv_js,function(){me.log("使用flv.js播放"),me.initflv()}):addJs(ckplayerJS,function(){me.initCKPlayer()}))}},EZUIPlayer.prototype.initHLS=function(hlsURL){var me=this,hls=new Hls({defaultAudioCodec:"mp4a.40.2"});hls.loadSource(hlsURL),hls.attachMedia(this.video),hls.on(Hls.Events.MANIFEST_PARSED,function(){me.opt.autoplay&&me.video.play(),me.initVideoEvent()}),hls.on(Hls.Events.ERROR,function(event,data){if(data.fatal)switch(data.type){case Hls.ErrorTypes.NETWORK_ERROR:console.log("fatal network error encountered, try to recover"),hls.startLoad();break;case Hls.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover"),hls.recoverMediaError();break;default:hls.destroy()}}),this.hls=hls},EZUIPlayer.prototype.initCKPlayer=function(url){this.log("ckplayer初始化");var me=this,events={play:function(){me.emit("play")},pause:function(){me.emit("pause")},error:function(){me.emit("error")}};window.ckplayer_status=function(){me.log(arguments),events[arguments[0]]&&events[arguments[0]]()},this.videoFlash=document.createElement("DIV"),this.video.parentNode.replaceChild(this.videoFlash,this.video),this.video=this.videoFlash,this.videoFlash.id=this.opt.parentId;var flashvars=null;flashvars=/^rtmp/.test(this.opt.currentSource)?{f:this.opt.currentSource,c:0,p:this.opt.autoplay?1:0,i:this.opt.poster,lv:1,loaded:"loadHandler"}:/\.m3u8/.test(this.opt.currentSource)?{s:4,f:"https://open.ys7.com/sdk/js/2.0/js/ckplayer/m3u8.swf",a:this.opt.currentSource,c:0,lv:1,p:this.opt.autoplay?1:0,i:this.opt.poster,loaded:"loadHandler"}:{f:this.opt.currentSource,c:0,p:1,loaded:"loadHandler"};var params={bgcolor:"#FFF",allowFullScreen:!0,allowScriptAccess:"always",wmode:"transparent"};this.flashId=this.opt.parentId+"flashId",window.CKobject.embedSWF("https://open.ys7.com/sdk/js/2.0/js/ckplayer/ckplayer.swf",this.opt.parentId,this.flashId,this.opt.width,this.opt.height,flashvars,params)},EZUIPlayer.prototype.initVideoEvent=function(){var me=this,EVENT={loadstart:function(e){me.log("loadstart...当浏览器开始查找音频/视频时..."),me.emit("loadstart",e)},durationchange:function(e){me.log("durationchange...当音频/视频的时长已更改时..."),me.emit("durationchange",e)},loadedmetadata:function(e){me.log("loadedmetadata...当浏览器已加载音频/视频的元数据时..."),me.emit("loadedmetadata",e)},loadeddata:function(e){me.log("loadeddata...当浏览器已加载音频/视频的当前帧时..."),me.emit("loadeddata",e)},progress:function(e){me.log("progress...当浏览器正在下载音频/视频时..."),me.emit("progress",e)},canplay:function(e){me.log("canplay...当浏览器可以播放音频/视频时..."),me.emit("canplay",e)},canplaythrough:function(e){me.log("canplaythrough...当浏览器可在不因缓冲而停顿的情况下进行播放时..."),me.emit("canplaythrough",e)},abort:function(e){me.log("abort...当音频/视频的加载已放弃时..."),me.emit("abort",e)},emptied:function(e){me.log("emptied...当目前的播放列表为空时..."),me.emit("emptied",e)},ended:function(e){me.log("ended...当目前的播放列表已结束时..."),me.emit("ended",e)},pause:function(e){me.log("pause...当音频/视频已暂停时..."),me.emit("pause",e)},play:function(e){me.log("play...当音频/视频已开始或不再暂停时..."),me.emit("play",e)},playing:function(e){me.log("playing...当音频/视频在已因缓冲而暂停或停止后已就绪时..."),me.emit("playing",e)},ratechange:function(e){me.log("ratechange...当音频/视频的播放速度已更改时..."),me.emit("ratechange",e)},seeked:function(e){me.log("seeked...当用户已移动/跳跃到音频/视频中的新位置时..."),me.emit("seeked",e)},seeking:function(e){me.log("seeking...当用户开始移动/跳跃到音频/视频中的新位置时..."),me.emit("seeking",e)},stalled:function(e){me.log("stalled...当浏览器尝试获取媒体数据，但数据不可用时..."),me.emit("stalled",e)},suspend:function(e){me.log("suspend...当浏览器刻意不获取媒体数据时..."),me.emit("suspend",e),me.opt.autoplay&&me.video.play()},timeupdate:function(e){me.emit("timeupdate",e)},volumechange:function(e){me.log("volumechange...当音量已更改时..."),me.emit("volumechange",e)},waiting:function(e){me.log("waiting...当视频由于需要缓冲下一帧而停止..."),me.emit("waiting",e)},error:function(e){me.log("error...当在音频/视频加载期间发生错误时..."),me.emit("error",e)}};for(var i in EVENT)this.video.addEventListener(i,EVENT[i],!1);ios11Hack(this.video)},EZUIPlayer.prototype.initJSmpeg=function(jsmpegUrl){this.canvasEle=document.createElement("canvas"),this.canvasEle.style.width=this.opt.width,this.canvasEle.style.height=this.opt.height,this.video.parentNode.replaceChild(this.canvasEle,this.video),this.canvasEle.id=this.opt.parentId;var player;player&&player.destroy&&player.destroy(),player=new JSMpeg.Player(jsmpegUrl,{canvas:this.canvasEle}),this.JSmpeg=player},EZUIPlayer.prototype.initflv=function(){if(!flvjs.isSupported())throw this.log("浏览器不支持flv播放"),new Error("浏览器不支持flv播放");var player=this.video;player.getAttribute("controls")||player.setAttribute("controls",!0);var flvPlayer=flvjs.createPlayer({type:"flv",url:this.opt.currentSource,isLive:!0},{enableStashBuffer:!0,stashInitialSize:128,enableWorker:!0});flvPlayer.attachMediaElement(player),flvPlayer.load(),flvPlayer.play(),this.flv=flvPlayer},EZUIPlayer.prototype.rePlay=function(playParams){
this.loadingStart();var _this=this,getRealUrl=this.getRealUrl(playParams);isPromise(getRealUrl)&&getRealUrl.then(function(data){_this.play(playParams)}).catch(function(err){console.log("播放错误",err)})},EZUIPlayer.prototype.play=function(playParams){function getPlayParams(url){var websocketConnectUrl=url.split("?")[0].replace("/live","").replace("/playback","");playParams&&playParams.env&&playParams.env.wsUrl&&(websocketConnectUrl=playParams.env.wsUrl);var websocketStreamingParam=(-1===url.indexOf("/live")?-1!==url.indexOf("cloudplayback")?"/cloudplayback?":"/playback?":"/live?")+url.split("?")[1];return-1!==websocketStreamingParam.indexOf("/playback")&&(websocketStreamingParam=websocketStreamingParam.replace("stream=2","stream=1")),{websocketConnectUrl:websocketConnectUrl,websocketStreamingParam:websocketStreamingParam}}if(window.CKobject)this.opt.autoplay=!0,this.initCKPlayer();else if(this.video)this.hls?(this.opt.autoplay=!0,this.hls.startLoad(),this.video.play()):this.JSmpeg?this.JSmpeg.play():(this.opt.autoplay=!0,this.video.play());else if(this.jSPlugin){var audioId=0;playParams&&playParams.audioId?audioId=playParams.audioId:-1===playParams.audioId&&(audioId=void 0);var _this=this;playParams&&void 0!==playParams.index||_this.opt.sources.forEach(function(item,index){if(getQueryString("dev",item)){_this.log("开始播放, 第"+(index+1)+"路，地址："+item),_this.loadingSet(index,{text:"准备播放...",color:"#fff"});var validateCode=getQueryString("checkCode",item);validateCode&&(_this.log("设置秘钥，视频路数："+(index+1)+"验证码："+validateCode),_this.jSPlugin.JS_SetSecretKey(index,validateCode));var playST=(new Date).getTime();_this.jSPlugin.JS_Play(getPlayParams(item).websocketConnectUrl,{playURL:getPlayParams(item).websocketStreamingParam},index).then(function(){_this.log("播放成功，当前播放第"+(index+1)+"路"),_this.loadingSet(index,{text:"播放成功..."}),ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:2,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-playST,rt:200}),ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:99,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-playStartTime,rt:200}),_this.loadingEnd(index),void 0!==audioId&&audioId===index&&(_this.log("默认开启第1路声音"),setTimeout(function(){0===_this.jSPlugin.JS_OpenSound(0)?_this.log("开启声音成功"):_this.log("开启声音失败","error")},100)),playParams&&playParams.handleSuccess&&playParams.handleSuccess();var PlTp=1;playParams&&playParams.url&&-1!==playParams.url.indexOf("rec")&&(PlTp=2),dclog({systemName:PLAY_MAIN,playurl:encodeURIComponent(item),Time:(new Date).Format("yyyy-MM-dd hh:mm:ss.S"),Enc:0,PlTp:PlTp,Via:2,ErrCd:0,OpId:uuid(),Cost:(new Date).getTime()-_this.initTime,Serial:getQueryString("dev",item),Channel:getQueryString("chn",item)})},function(err){_this.log("播放失败"+JSON.stringify(err),"error");var errorInfo=JSON.parse(_this.errorCode).find(function(item){return item.detailCode.substr(-4)==err.oError.errorCode});ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:2,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-playStartTime,rt:err.oError?err.oError.errorCode:500,msg:errorInfo?errorInfo.description:"播放过程其他错误"});var msg=errorInfo?errorInfo.description:"播放过程其他错误";if(_this.loadingSet(index,{text:msg,color:"red"}),dclog({systemName:PLAY_MAIN,playurl:encodeURIComponent(item),cost:-1,ErrCd:-1,OpId:uuid(),Serial:getQueryString("dev",item),Channel:getQueryString("chn",item)}),playParams&&playParams.handleError){var errorInfo=JSON.parse(_this.errorCode).find(function(item){return item.detailCode.substr(-4)==err.oError.errorCode});playParams.handleError({retcode:err.oError.errorCode,msg:errorInfo?errorInfo.description:"其他错误"})}})}else isJSON(item)&&JSON.parse(item).msg&&_this.loadingSet(index,{text:JSON.parse(item).msg,color:"red"})})}},EZUIPlayer.prototype.initDecoder=function(playParams){function initDecoder(resolve,reject){function success(data){if(200==data.code){if(!window.localStorage)return!1;var storage=window.localStorage;storage.errorCode=JSON.stringify(data.data),_this.errorCode=storage.errorCode}}if(addJs(playParams.decoderPath+"/js/jsPlugin-1.2.0.min.js",function(){_this.log("下载解码器完成，开始初始化"),_this.jSPlugin=new JSPlugin({szId:playParams.id,iType:2,iMode:0,iWidth:playParams.width||600,iHeight:playParams.height||400,iMaxSplit:Math.ceil(Math.sqrt(playParams.url.split(",").length)),iCurrentSplit:playParams.splitBasis||Math.ceil(Math.sqrt(playParams.url.split(",").length)),szBasePath:playParams.decoderPath+"/js"}),window.onresize=function(){_this.jSPlugin.JS_Resize(playParams.width||600,playParams.height||400)},_this.log("初始化解码器----完成"),ezuikitDclog({systemName:PERFORMANCE_EZUIKIT,bn:1,browser:JSON.stringify(getBrowserInfo()),duration:(new Date).getTime()-initDecoderDurationST,rt:200}),resolve("200 OK")}),window.localStorage){var storage=window.localStorage;storage.errorCode?_this.errorCode=storage.errorCode:request(playParams.decoderPath+"/js/errorCode.json","get",{language:1,time:(new Date).getTime(),appKey:"26810f3acd794862b608b6cfbc32a6b8"},"",success)}else request(playParams.decoderPath+"/js/errorCode.json","get",{language:1,time:(new Date).getTime(),appKey:"26810f3acd794862b608b6cfbc32a6b8"},"",success)}this.opt.id=playParams.id,this.log("初始化解码器---开始");var _this=this,initDecoderDurationST=(new Date).getTime();return new Promise(initDecoder)},EZUIPlayer.prototype.stop=function(i,unDestory){if(this.log("停止播放"+this.opt.currentSource),this.opt.autoplay=!1,window.CKobject)this.video.src="";else if(this.video)this.hls?(this.video.pause(),this.video.src="",this.hls.stopLoad()):this.flv?(this.flv.pause(),this.flv.unload(),this.flv.detachMediaElement(),this.flv.destroy(),this.flv=null):this.JSmpeg&&this.JSmpeg.stop();else if(this.jSPlugin){var _this=this;return void 0===i?this.jSPlugin.JS_Stop(0).then(function(){_this.log("停止播放成功"+_this.opt.currentSource),console.log("stop success"),_this.loadingEnd(0)},function(){_this.log("停止播放失败"+_this.opt.currentSource),console.log("stop failed")}):this.jSPlugin.JS_Stop(i).then(function(){_this.log("第"+i+"路停止播放成功"+_this.opt.currentSource),_this.loadingEnd(i),console.log("stop success")},function(){_this.log("第"+i+"路停止播放失败"+_this.opt.currentSource),_this.loadingEnd(i),console.log("stop failed")})}},EZUIPlayer.prototype.destroy=function(i){_this.jSPlugin.JS_DestroyWorker()},EZUIPlayer.prototype.getOSDTime=function(wNum){const _this=this;if(this.jSPlugin)return _this.jSPlugin.JS_GetOSDTime(wNum||0);throw new Error("Method  not support")},EZUIPlayer.prototype.getVersion=function(wNum){const _this=this;if(!this.jSPlugin)throw new Error("Method  not support");console.log(_this.jSPlugin.JS_GetSdkVersion())},EZUIPlayer.prototype.openSound=function(iWind){if(this.jSPlugin){var openSoundRT=this.jSPlugin.JS_OpenSound(iWind||0);return 0===openSoundRT?this.log("开启声音成功"):this.log("开启声音失败","error"),openSoundRT}throw new Error("Method  not support")},EZUIPlayer.prototype.fullScreen=function(){if(this.jSPlugin)return this.jSPlugin.JS_FullScreenDisplay(1);throw new Error("Method  not support")},EZUIPlayer.prototype.closeSound=function(iWind){if(this.jSPlugin){var closeSoundRT=this.jSPlugin.JS_CloseSound(iWind||0);return 0===closeSoundRT?this.log("关闭声音成功"):this.log("关闭声音失败","error"),closeSoundRT}throw new Error("Method  not support")},EZUIPlayer.prototype.capturePicture=function(iWind,pictureName){if(this.jSPlugin)return this.jSPlugin.JS_CapturePicture(iWind,pictureName);throw new Error("Method  not support")},EZUIPlayer.prototype.startSave=function(iWind,fileName){if(this.jSPlugin)return this.log("开始录制录像"),this.jSPlugin.JS_StartSave(iWind,fileName);throw new Error("Method  not support")},EZUIPlayer.prototype.stopSave=function(iWind){if(this.jSPlugin)return this.jSPlugin.JS_StopSave(iWind);throw new Error("Method  not support")},EZUIPlayer.prototype.reSize=function(width,height){if(this.jSPlugin)return this.jSPlugin.JS_Resize(width,height);throw new Error("Method  not support")},EZUIPlayer.prototype.pause=function(){this.opt.autoplay=!1,window.CKobject?CKobject.getObjectById(this.flashId).videoPause():this.video?this.JSmpeg?this.JSmpeg.pause():this.video.pause():this.jSPlugin&&this.jSPlugin.JS_Pause(0).then(function(){},function(){})},EZUIPlayer.prototype.load=function(){window.CKobject||this.video&&this.video.load()},EZUIPlayer.prototype.enableZoom=function(iWind){if(this.jSPlugin)return this.jSPlugin.JS_EnableZoom(iWind||0);throw new Error("Method  not support")},EZUIPlayer.prototype.closeZoom=function(iWind){if(this.jSPlugin)return this.jSPlugin.JS_DisableZoom(iWind||0);throw new Error("Method  not support")};var EZUIKit={EZUIPlayer:EZUIPlayer};return noGlobal||(window.EZUIKit=EZUIKit,window.EZUIPlayer=EZUIPlayer),EZUIKit});</script>
<script>
    var urlArr = [
        'http://hls01open.ys7.com/openlive/419d4c6ba7884b208025c2b78ef9b522.m3u8',
        'http://hls01open.ys7.com/openlive/dd0f13fbca844eec8d1edbcf5f956b9c.m3u8',
        'http://hls01open.ys7.com/openlive/f3bd218860a4416caadb8517cf66cce1.m3u8',
        'http://hls01open.ys7.com/openlive/f92edc0a28c94ccdaab9bde012bcc08a.m3u8',
        'http://hls.open.ys7.com/openlive/91fb473d2d634064905003d12e4b4bc2.m3u8',
        'http://hls.open.ys7.com/openlive/6d772a6358e7480e82caea60c246f7b2.m3u8',
        'http://hls.open.ys7.com/openlive/552e0a70455e4fa4ba19681becc81b88.m3u8',
        'http://hls01open.ys7.com/openlive/b7baecda33424544aeb1b7bfc0bb5f1f.m3u8',
        'http://hls.open.ys7.com/openlive/19713f7ab55b43c5bfb2301f479c9245.m3u8',
        'http://hls01open.ys7.com/openlive/c85679f9823f498eae974bb0b9519156.m3u8'
    ]
    var url = urlArr[0];
			$('#myPlayer').attr("src", url);
			 var player = new EZUIKit.EZUIPlayer('myPlayer');
			//  $('.monitor').click(function () {
			//     $(this).siblings().removeClass("selected")
			//     $(this).addClass('selected')
			//    console.log($(this).index())
			//  console.log($(this).index('a') - 14)
			//  url = urlArr[$(this).index()]
			//  $('#myPlayer').attr("src", url);
			//  player = new EZUIKit.EZUIPlayer('myPlayer');
			// })
    </script>
</body>
</html>